package com.yuw.hw20190404.test06;

public class Person {

	// 属性
	private String perName;
	private int perAge;
	private double perHeigth;

	// 行为

	public Person(String perName, int perAge, double perHeigth) {
		super();
		this.perName = perName;
		this.perAge = perAge;
		this.perHeigth = perHeigth;
	}

	/**
	 * 打招呼行为
	 */
	public void sayHello() {
		// 打招呼
		System.out.println("Hello,I am " + this.perName);
	}

	public String getPerName() {
		return perName;
	}

	public void setPerName(String perName) {
		this.perName = perName;
	}

	public int getPerAge() {
		return perAge;
	}

	public void setPerAge(int perAge) {
		this.perAge = perAge;
	}

	public double getPerHeigth() {
		return perHeigth;
	}

	public void setPerHeigth(double perHeigth) {
		this.perHeigth = perHeigth;
	}

}
